package com.example.accessdemo.controller;

import com.example.accessdemo.service.MyService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;


/**
 * @ClassName AccessDemoController
 * @Description 通过调用第三方RESTFULL接口请求数据的demo工程
 * @Author kuangdda
 * @Date 19:02 2022/12/6
 * @Version 1.0
 **/
@RestController
@RequestMapping("/demo")
public class AccessDemoController {

    @Resource
    private MyService myService;

    /**
     * 通过调用第三方RESTFULL接口来获取资产树数据
     * @return
     */
    @GetMapping("/asset")
    public String asset(){
        return myService.testClient();
    }
}
